import StatusEnum from "@/enums/StatusEnum";

/**
 * @param label 表头
 * @param prop 字段名
 * @param isSearch 是否筛选项
 * @type {[{isSearch: boolean, prop: string, label: string},{isSearch: boolean, prop: string, label: string},{isSearch: boolean, prop: string, label: string},{isSearch: boolean, prop: string, label: string, enum: {0: string, 1: string, 2: string}}]}
 */
const tableColumn = [{
  label: "ID",
  prop: "id",
  isSearch: false,
  isTable: true
}, {
  label: "机构名称",
  prop: "name",
  isSearch: true,
  isTable: true,
  isForm: true,
  formType: "input",
  required: true,
  min: 0,
  max: 50
}, {
  label: "联系人",
  prop: "user",
  isSearch: true,
  isTable: true,
  isForm: true,
  formType: "input",
  required: true,
  min: 0,
  max: 50
}, {
  label: "联系电话",
  prop: "mobile",
  isSearch: true,
  isTable: true,
  isForm: true,
  formType: "input",
  required: true,
  min: 0,
  max: 13
}, {
  label: "对公账户名称",
  prop: "account",
  isSearch: false,
  isTable: false,
  isForm: true,
  formType: "input",
  required: false,
  min: 0,
  max: 50
}, {
  label: "对公账户开户行",
  prop: "bank",
  isSearch: false,
  isTable: false,
  isForm: true,
  formType: "input",
  required: false,
  min: 0,
  max: 50
}, {
  label: "对公账户卡号",
  prop: "cardnum",
  isSearch: false,
  isTable: false,
  isForm: true,
  formType: "input",
  required: false,
  min: 0,
  max: 50
}]
const tableConfig = {
  buttons: ["view", "edit"]
}
const pageConfig = {
  small: false,
  disabled: false,
  background: false,
}
export {
  tableColumn,
  tableConfig,
  pageConfig
};